import React from 'react';
import './App.css';
import {Navigate, Outlet} from 'react-router-dom';
import Frame from './components/Frame/Index'
import {isLogin} from "./utils/auth";

function App() {
    return (isLogin() ?
        <div className="App">
            <Frame>
                <Outlet/>
            </Frame>

        </div> : <Navigate to="/login" replace/>);
}

export default App;
